package com.productserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author wjn.
 * @Date 2020/11/13 - 14:15.
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@RibbonClients/*(name="ORDERSERVER",configuration = GetServerRule.class)*/
@EnableHystrix
public class ProductServer {
    public static void main(String[] args) {
        SpringApplication.run(ProductServer.class,args);
        System.out.println("登录成功-ProductServer");
    }
}
